php variable constant

35

if (...) {
     const FOO = 'BAR';    // Invalid
 }
 // but
 if (...) {
     define('FOO', 'BAR'); // Valid
 }

Comments

Submit
0 Comments